package com.heima.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.heima.pojo.Node;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.pojo.vo.NodeVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 点位表 Mapper 接口
 * </p>
 *
 * @author xjy
 * @since 2024-06-05
 */
@Mapper
public interface NodeMapper extends BaseMapper<Node> {

    Page<NodeVo> pageSearch(Page<NodeVo> page, Long regionId);

    NodeVo getDetailById(Long nodeId);

    List<Map<String, Object>> nodeCollect();

    List<NodeVo> batchSelectByIds(List<Long> ids);
}
